<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="__CSS__/style_forum.css" />
    <link rel="stylesheet" href="__CSS__/style_login.css" />
    <link rel="stylesheet" href="__CSS__/style_index.css" />
    <link rel="stylesheet" href="__CSS__/style_view.css" />
    <script type="text/javascript" src="__JS__/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="__JS__/loadinghtml.js"></script>
    <script type="text/javascript" src="__JS__/DropDown.js"></script>
    <script src="__JS__/vue.min.js"></script>
    <link rel="stylesheet" href="__CSS__/reset.css" />
    <title>首页 - ThinkPHP</title>
  </head>
  <body>
    <div id="header" class="top">
      <div id="hd-main">
        <a id="alink" href="{:url('index/index')}" title="返回首页"></a>
        <ul id="main-nav">
          <li style="background-color: #656565"><a href="{:url('index/index')}">首页</a></li>
          <li id="triggerdown">
            <a href="{:url('index/view',['s_id'=>0,'ot'=>'m_createat'])}">论坛</a>
            <ul id="dropdown">
              <li><a href="{:url('index/view',['s_id'=>0,'ot'=>'m_createat'])}">全部</a></li>
              {volist name="sec" id="secRow"}
              <li><a href="{:url('index/view',['s_id'=>$secRow.s_id,'ot'=>'m_createat'])}">{$secRow.s_name}</a></li>
              {/volist}
            </ul>
          </li>
          <li><a href="{:url('index/pa')}">修改密码</a></li>
          <li><a href="{:url('index/me')}">上传头像</a></li>
          <li><a href="{:url('user/login')}">登录</a></li>
          <li><a href="{:url('user/reg')}">注册</a></li>
          <li><a href="{:url('index/logout')}">退出</a></li>
          <li><a href="{:url('user/contact')}">联系我们</a></li>
        </ul>
        <div id="header-bar">
          {eq name=':session("user")' value=''}
          <h3>欢迎你，请登录</h3>
          <div id="userloginmes">
            <a href="{:url('user/login')}" id="unlogin">
              <b></b>
            </a>
            <ul>
              <li><a href="{:url('user/login')}">登录</a></li>
              <li><a href="{:url('user/reg')}">注册</a></li>
            </ul>
          </div>
          {else/}
          <h3>欢迎你，{:session('user')}</h3>
          <div id="userloginmes">
            <a href="" id="unlogin">
              <img src="__POT__/{:session('uimg')}" width="24px" height="24px" />
            </a>
            <ul>
              <li><a href="{:url('index/collect')}">我的收藏</a></li>
              <li><a href="{:url('index/logout')}">退出</a></li>
            </ul>
          </div>
          {/eq}
        </div>
      </div>
    </div>
    <div id="main">
      <div id="banner">
        <div class="bannerImg">
          <img :src="getBannerSrc" />
          <div class="arrow leftArrow" @click="lastImg"><a><</a></div>
          <div class="arrow rightArrow" @click="lastImg"><a>></a></div>
        </div>
        <div id="bannerContent">
          <p class="bannerTitle">{{bannerData[num]["name"]}}</p>
          <p class="bannerText">{{bannerData[num]["text"]?bannerData[num]["text"]:'暂无文本'}}</p>
          <ul class="point">
            <li v-for="(item,index) in bannerData.length" class="pointli" :class="{'active':num == index}" @click="liChange(index)"></li>
          </ul>
        </div>
      </div>
      <div id="newpost">
        <div class="box extend" style="width: 65%">
          <ul id="about-tab">
            <li id="r_order"><a href="{:url('index/view',['s_id'=>input(\'s_id\'),'ot'=>'r_order'])}">最新回复</a></li>
            <li id="m_createat" class=""><a href="{:url('index/view',['s_id'=>input(\'s_id\'),'ot'=>'m_createat'])}">最新发布</a></li>
            <li><a href="">ThinkPHP6专区</a></li>
            <li><a href="">求助交流</a></li>
            <li><a href="">技术分享</a></li>
          </ul>
          <ul class="ext-list">
            {volist name="mes" id="mesRow"}
            <li>
              <a href="" class="avatar">
                <img src="__POT__/{$mesRow.u_img}" width="44px" height="44px" />
              </a>
              <div class="hd">
                {eq name="s_id" value="0"}
                <a href="{:url('index/view',['s_id'=>$mesRow.s_id])}">[&nbsp;{$mesRow.s_name}&nbsp;]</a>
                {/eq}
                <a href="{:url('index/detail',['m_id'=>$mesRow.m_id,'page'=>1])}">{$mesRow.m_title}</a>
              </div>
              <div class="ft">
                <span class="fr">{$mesRow.m_createat | date="Y-m-d H:i"}</span>
                <span class="related-info">{$mesRow.u_nick}</span>
                <span class="related-info">浏览：{$mesRow.m_browse} </span>
                {volist name="rt" id="rtRow"} {if $rtRow.m_id==$mesRow.m_id}
                <a class="related-info" href="{:url('index/detail',['m_id'=>$mesRow.m_id,'page'=>1])}#comment">评论：{$rtRow.mtotal}</a>
                {/if} {/volist} {if !in_array($mesRow.m_id,$rid)}
                <a class="related-info" href="{:url('index/detail',['m_id'=>$mesRow.m_id,'page'=>1])}#comment">评论：0</a>
                {/if}
              </div>
            </li>
            {/volist}
          </ul>
        </div>
        <div class="adv">
          <div v-for="item in advs" class="adv-1">
            <a href=""> <img :src="item['src']" alt="" /></a>
          </div>
        </div>
      </div>
    </div>
    <div id="footer"></div>
  </body>
  <script>
    let bannerData = [
      { name: '看云', src: '__IMG__/banner3.jpg', text: '看云是一个现代化文档写作、托管及数字出版平台,基于MarkDown语法和Git版本库管理,让你专注于知识创作,可以用于企业知识库、产品手册、项目文档和个人数字出版。' },
      { name: '教程', src: '__IMG__/banner2.jpg', text: '教程勘查发卢卡斯京东方垃圾啊吴三桂厅' },
      { name: 'ThinkApi', src: '__IMG__/banner1.jpg' }
    ];
    let advs = [
      {
        name: '玩尼玛',
        src: '__IMG__/暴米花手机.jpg'
      },
      {
        name: '兔兔',
        src: '__IMG__/rabbit.jpg'
      }
    ];
  </script>
  <script src="__JS__/lunbo.js"></script>
</html>
